package com.apkfuns.logutils.parser;



import com.apkfuns.logutils.NonNull;
import com.apkfuns.logutils.Parser;
import ohos.hiviewdfx.HiLog;

/**
 * Created by pengwei on 16/3/8.
 */
class ThrowableParse implements Parser<Throwable> {
    @NonNull
    @Override
    public Class<Throwable> parseClassType() {
        return Throwable.class;
    }

    @Override
    public String parseString(@NonNull Throwable throwable) {
        return HiLog.getStackTrace(throwable);
    }
}
